$(function(){
	var userListUrl = "/demo/user/getAllUser";
	
	$.getJSON(userListUrl,function(data){
		if(data.success){
			var html = "";
			var userList = data.userList;
			userList.map(function(item,index){
				html += "<tr>" 
						+ "<td>" + item.userId + "</td>"
						+ "<td>" + item.userName + "</td>"
						+ "<td>" + item.userGender + "</td>"
						+ "</tr>"
			});
			$("#userList").html(html);
		}else{
			var html = "数据空白";
			$("#userList").html(html);
		}
	});
});